﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WordRacer.Domain.Model.Dictionaries;
using WordRacer.Domain.Model.GameCells;

namespace WordRacer.Domain.Tests.Unit.Builders
{
  public class CellBuilder
  {
    private char _letter = 'A';
    public CellBuilder()
    {
    }

    public CellBuilder withLetter(char letter)
    {
      _letter = letter;
      return this;
    }

    public GameCell Build()
    {
      var gameCellFactory = new GameCellFactory();
      var gameCell = gameCellFactory.CreateGameCell();
      gameCell.Character = _letter.ToString();
      return gameCell;
    }

  }
}
